From: Anton Kikin Date: Sat, 19 Sep 2020 02:16:07 +0000 (+0300) Subject: luci-base: make translatable default values for dhcp hostname X-Git-Url: http://git.openwrt.org/%22https:/collectd.org/%22http:/www.crowdsec.net//%22https%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22https%22?a=commitdiff_plain;h=509bf29cc9ae96350547946b207c0c0b5f61917f;p=project%2Fluci.git luci-base: make translatable default values for dhcp hostname We must be able to translate these values. Fixes: fd75c2b7c ("luci-base: add default value options dhcp hostname") Signed-off-by: Anton Kikin --- diff --git a/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js b/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js index 28f06ecb8c..bacbf559f9 100644 --- a/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js +++ b/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js @@ -21,8 +21,8 @@ return network.registerProtocol('dhcp', { o = s.taboption('general', form.Value, 'hostname', _('Hostname to send when requesting DHCP')); o.default = ''; - o.value('', 'Send the hostname of this device'); - o.value('*', 'Do not send a hostname'); + o.value('', _('Send the hostname of this device')); + o.value('*', _('Do not send a hostname')); o.datatype = 'or(hostname, "*")'; o.load = function(section_id) { return callFileRead('/proc/sys/kernel/hostname').then(L.bind(function(hostname) {